// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_SHIP_FEEDBACK
// * CreateDate    : 2014-06-05 18:30:39
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:39
// * LastChanger   : 2014-06-05 18:30:39
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class SalesShipFeedbackEntity : EntityBase
    {
        public SalesShipFeedbackTable TableSchema
        {
            get
            {
                return SalesShipFeedbackTable.Current;
            }
		}
		
		public SalesShipFeedbackEntity()
        {

        }
		
		public SalesShipFeedbackEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.UpdatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["UPDATED_DATE"]));
			this.UpdatedBy = Convert.ToString(CommonFunctions.ToObject(dr["UPDATED_BY"]));
			this.IsActive = Convert.ToInt32(CommonFunctions.ToObject(dr["IS_ACTIVE"]));
			this.MaterialId = Convert.ToString(CommonFunctions.ToObject(dr["MATERIAL_ID"]));
			this.MaterialName = Convert.ToString(CommonFunctions.ToObject(dr["MATERIAL_NAME"]));
			this.ShipItemId = Convert.ToString(CommonFunctions.ToObject(dr["SHIP_ITEM_ID"]));
			this.ShipPerson = Convert.ToString(CommonFunctions.ToObject(dr["SHIP_PERSON"]));
			this.ShipDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["SHIP_DATE"]));
			this.ShipType = Convert.ToString(CommonFunctions.ToObject(dr["SHIP_TYPE"]));
			this.RevPerson = Convert.ToString(CommonFunctions.ToObject(dr["REV_PERSON"]));
			this.RevDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["REV_DATE"]));
			this.RevQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["REV_QTY"]));
			this.ShipAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["SHIP_AMOUNT"]));
			this.FeeType = Convert.ToString(CommonFunctions.ToObject(dr["FEE_TYPE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
        }
		
		public SalesShipFeedbackEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.UpdatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["UPDATED_DATE"]));
			this.UpdatedBy = Convert.ToString(CommonFunctions.ToObject(dr["UPDATED_BY"]));
			this.IsActive = Convert.ToInt32(CommonFunctions.ToObject(dr["IS_ACTIVE"]));
			this.MaterialId = Convert.ToString(CommonFunctions.ToObject(dr["MATERIAL_ID"]));
			this.MaterialName = Convert.ToString(CommonFunctions.ToObject(dr["MATERIAL_NAME"]));
			this.ShipItemId = Convert.ToString(CommonFunctions.ToObject(dr["SHIP_ITEM_ID"]));
			this.ShipPerson = Convert.ToString(CommonFunctions.ToObject(dr["SHIP_PERSON"]));
			this.ShipDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["SHIP_DATE"]));
			this.ShipType = Convert.ToString(CommonFunctions.ToObject(dr["SHIP_TYPE"]));
			this.RevPerson = Convert.ToString(CommonFunctions.ToObject(dr["REV_PERSON"]));
			this.RevDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["REV_DATE"]));
			this.RevQty = Convert.ToDecimal(CommonFunctions.ToObject(dr["REV_QTY"]));
			this.ShipAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["SHIP_AMOUNT"]));
			this.FeeType = Convert.ToString(CommonFunctions.ToObject(dr["FEE_TYPE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SalesShipFeedbackTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_ID)); }
            set { SetData(SalesShipFeedbackTable.C_ID, value); }
        }
		
        [DataMember]
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(SalesShipFeedbackTable.C_CREATED_DATE)); }
            set { SetData(SalesShipFeedbackTable.C_CREATED_DATE, value); }
        }
		
        [DataMember]
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_CREATED_BY)); }
            set { SetData(SalesShipFeedbackTable.C_CREATED_BY, value); }
        }
		
        [DataMember]
        public DateTime UpdatedDate
        {
            get { return Convert.ToDateTime(GetData(SalesShipFeedbackTable.C_UPDATED_DATE)); }
            set { SetData(SalesShipFeedbackTable.C_UPDATED_DATE, value); }
        }
		
        [DataMember]
        public string UpdatedBy
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_UPDATED_BY)); }
            set { SetData(SalesShipFeedbackTable.C_UPDATED_BY, value); }
        }
		
        [DataMember]
        public int IsActive
        {
            get { return Convert.ToInt32(GetData(SalesShipFeedbackTable.C_IS_ACTIVE)); }
            set { SetData(SalesShipFeedbackTable.C_IS_ACTIVE, value); }
        }
		
        [DataMember]
        public string MaterialId
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_MATERIAL_ID)); }
            set { SetData(SalesShipFeedbackTable.C_MATERIAL_ID, value); }
        }
		
        [DataMember]
        public string MaterialName
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_MATERIAL_NAME)); }
            set { SetData(SalesShipFeedbackTable.C_MATERIAL_NAME, value); }
        }
		
        [DataMember]
        public string ShipItemId
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_SHIP_ITEM_ID)); }
            set { SetData(SalesShipFeedbackTable.C_SHIP_ITEM_ID, value); }
        }
		
        [DataMember]
        public string ShipPerson
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_SHIP_PERSON)); }
            set { SetData(SalesShipFeedbackTable.C_SHIP_PERSON, value); }
        }
		
        [DataMember]
        public DateTime ShipDate
        {
            get { return Convert.ToDateTime(GetData(SalesShipFeedbackTable.C_SHIP_DATE)); }
            set { SetData(SalesShipFeedbackTable.C_SHIP_DATE, value); }
        }
		
        [DataMember]
        public string ShipType
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_SHIP_TYPE)); }
            set { SetData(SalesShipFeedbackTable.C_SHIP_TYPE, value); }
        }
		
        [DataMember]
        public string RevPerson
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_REV_PERSON)); }
            set { SetData(SalesShipFeedbackTable.C_REV_PERSON, value); }
        }
		
        [DataMember]
        public DateTime RevDate
        {
            get { return Convert.ToDateTime(GetData(SalesShipFeedbackTable.C_REV_DATE)); }
            set { SetData(SalesShipFeedbackTable.C_REV_DATE, value); }
        }
		
        [DataMember]
        public decimal RevQty
        {
            get { return Convert.ToDecimal(GetData(SalesShipFeedbackTable.C_REV_QTY)); }
            set { SetData(SalesShipFeedbackTable.C_REV_QTY, value); }
        }
		
        [DataMember]
        public decimal ShipAmount
        {
            get { return Convert.ToDecimal(GetData(SalesShipFeedbackTable.C_SHIP_AMOUNT)); }
            set { SetData(SalesShipFeedbackTable.C_SHIP_AMOUNT, value); }
        }
		
        [DataMember]
        public string FeeType
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_FEE_TYPE)); }
            set { SetData(SalesShipFeedbackTable.C_FEE_TYPE, value); }
        }
		
        [DataMember]
        public string Status
        {
            get { return Convert.ToString(GetData(SalesShipFeedbackTable.C_STATUS)); }
            set { SetData(SalesShipFeedbackTable.C_STATUS, value); }
        }
		
		#endregion
	}
	
	
}	

